#include "MathHelper.hpp"
#include <stdlib.h>

float Typhoon::MathHelper::Random() {
	return (float)rand() / (float)RAND_MAX;
}

float Typhoon::MathHelper::Random(float min, float max) {
	return min + (max - min) * Random();
}

Typhoon::Vector2 Typhoon::MathHelper::Random(Vector2 min, Vector2 max) {
	return Vector2(Random(min.x, max.x), Random(min.y, max.y));
}